package com.zerous.framework.math;
import com.zerous.framework.*;

public class Box
{
	double x, y, w, h;
	public Box(double x, double y, double w, double h)
	{
		this.x = x;
		this.y = y;
		this.w = w;
		this.h = h;
	}
	
	public boolean isInside(Point p)
	{
		if(p.getX() > x && p.getX() < x + w && p.getY() > y && p.getY() < y + h)
		{
			return true;
		}
		return false;
	}
	
	public boolean isInside(Vector2 p)
	{
		if(p.getX() > x && p.getX() < x + w && p.getY() > y && p.getY() < y + h)
		{
			return true;
		}
		return false;
	}
}
